package com.tql.mall.model.enums;

public enum ProcessStatus {
    UNPAID("未支付", OrderStatus.UNPAID),
    PAID("已支付", OrderStatus.WAIT_DELIVER),
    WAIT_DELIVER("待发货", OrderStatus.WAIT_DELIVER),
    NOTIFIED_WARE("已通知仓储", OrderStatus.WAIT_DELIVER),
    DELIVERED("已发货", OrderStatus.DELIVERED),
    REACHED("已送达", OrderStatus.WAIT_TAKE),
    FINISHED("已签收", OrderStatus.FINISHED),
    WAIT_RETURN("待退货", OrderStatus.WAIT_RETURN),
    RETURNED("已退货", OrderStatus.RETURNED),
    CLOSED("已关闭", OrderStatus.CLOSED),
    COMMENT("已评价", OrderStatus.FINISHED),
    PAY_FAIL("支付失败", OrderStatus.UNPAID),
    SPLIT("订单已拆分", OrderStatus.SPLIT),
    STOCK_EXCEPTION("库存异常", OrderStatus.PAID),
    RETURN_FAIL("退货失败", OrderStatus.RETURN_FAIL);

    private String comment;
    private OrderStatus orderStatus;

    ProcessStatus(String comment, OrderStatus orderStatus) {
        this.comment = comment;
        this.orderStatus = orderStatus;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

}
